package com.huawei.appgallery.assistantdock.base.cardkit.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import com.huawei.appgallery.assistantdock.base.cardkit.card.BuoyHorizonBaseCard;
import o.beo$j;
import o.chz;

public abstract class BuoyHorizonBaseNode extends BuoyBaseNode {
    private BuoyHorizonBaseCard ˊ = null;

    public abstract BuoyHorizonBaseCard ˊ();

    public BuoyHorizonBaseNode(Context context) {
        super(context);
    }

    public int ˏ() {
        return 1;
    }

    public boolean ॱ() {
        return true;
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -1);
        layoutParams.weight = 1.0f;
        LayoutInflater from = LayoutInflater.from(this.ॱ);
        this.ˊ = ˊ();
        LinearLayout linearLayout = (LinearLayout) from.inflate(beo$j.ˏॱ, null);
        this.ˊ.ˎ(linearLayout);
        ˊ(this.ˊ);
        viewGroup.addView(linearLayout, layoutParams);
        return true;
    }

    public boolean ॱ(chz o_chz, ViewGroup viewGroup) {
        return super.ॱ(o_chz, viewGroup);
    }
}
